export VERSION=$(basename $(curl -s -w %{redirect_url} https://github.com/kubevirt/containerized-data-importer/releases/latest))
kubectl create -f https://github.com/kubevirt/containerized-data-importer/releases/download/$VERSION/cdi-operator.yaml
kubectl create -f https://github.com/kubevirt/containerized-data-importer/releases/download/$VERSION/cdi-cr.yaml

kubectl get cdi cdi -n cdi
kubectl get pods -n cdi
kubectl create -f dv_fedora.yml

# kubectl get pvc fedora -o yaml
# kubectl get pod # Make note of the pod name assigned to the import process
# kubectl logs -f importer-fedora-pnbqh   # Substitute your importer-fedora pod name here.
